#include "wt_login.h"
#include "ui_wt_login.h"

wt_login::wt_login(mainwindowCallBack cb) :
    m_MainCallback(cb),
    ui(new Ui::wt_login)
{
    ui->setupUi(this);
}

wt_login::~wt_login()
{
    delete ui;
}

void wt_login::on_pushButton_2_clicked()
{
    if(m_MainCallback)
    {
        m_MainCallback("clicked login");
    }else {
        qWarning()<<"callback is null";
    }

}
